import request from '@/utils/request'

// 查询生产商列表
export function listDeviceinfomanufacturers(query) {
  return request({
    url: '/system/deviceinfomanufacturers/list',
    method: 'get',
    params: query
  })
}

// 查询生产商详细
export function getDeviceinfomanufacturers(manufacturerId) {
  return request({
    url: '/system/deviceinfomanufacturers/' + manufacturerId,
    method: 'get'
  })
}

// 新增生产商
export function addDeviceinfomanufacturers(data) {
  return request({
    url: '/system/deviceinfomanufacturers',
    method: 'post',
    data: data
  })
}

// 修改生产商
export function updateDeviceinfomanufacturers(data) {
  return request({
    url: '/system/deviceinfomanufacturers',
    method: 'put',
    data: data
  })
}

// 删除生产商
export function delDeviceinfomanufacturers(manufacturerId) {
  return request({
    url: '/system/deviceinfomanufacturers/' + manufacturerId,
    method: 'delete'
  })
}
